package weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class WeiboDTO {
    @NotBlank(message = "微博内容不能为空")
    @Size(max = 140,message = "微博内容长度不能超过140")
    @ApiModelProperty(value = "微博内容",required = true)
    private String content;
}
